home *** CD-ROM | disk | FTP | other *** search
-
-
-
- CCCCRRRRYYYYPPPPTTTT((((3333CCCC)))) CCCCRRRRYYYYPPPPTTTT((((3333CCCC))))
-
-
-
- NNNNAAAAMMMMEEEE
- crypt, setkey, encrypt - generate hashing encryption
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ccccrrrryyyypppptttt....hhhh>>>>
-
- cccchhhhaaaarrrr ****ccccrrrryyyypppptttt((((ccccoooonnnnsssstttt cccchhhhaaaarrrr ****kkkkeeeeyyyy,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr ****ssssaaaalllltttt))));;;;
-
- vvvvooooiiiidddd sssseeeettttkkkkeeeeyyyy((((ccccoooonnnnsssstttt cccchhhhaaaarrrr ****kkkkeeeeyyyy))));;;;
-
- vvvvooooiiiidddd eeeennnnccccrrrryyyypppptttt((((ccccoooonnnnsssstttt cccchhhhaaaarrrr ****bbbblllloooocccckkkk,,,, iiiinnnntttt iiiiggggnnnnoooorrrreeeedddd))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _c_r_y_p_t is the password encryption function. It is based on a one way
- hashing encryption algorithm with variations intended (among other
- things) to frustrate use of hardware implementations of a key search.
-
- _K_e_y is the input string to encrypt, for instance, a user's typed
- password. _S_a_l_t is a two-character string chosen from the set [aaaa----zzzzAAAA----ZZZZ0000----
- 9999....////]; this string is used to perturb the hashing algorithm in one of 4096
- different ways, after which the password is used as the key to encrypt
- repeatedly a constant string. The returned value points to the encrypted
- password. The first two characters are the salt itself.
-
- The _s_e_t_k_e_y and _e_n_c_r_y_p_t entries provide (rather primitive) access to the
- actual hashing algorithm. The argument of _s_e_t_k_e_y is a character array of
- length 64 containing only the characters with numerical value 0 and 1.
- If this string is divided into groups of 8, the low-order bit in each
- group is ignored; this gives a 56-bit key which is set into the machine.
- This is the key that will be used with the hashing algorithm to encrypt
- the string _b_l_o_c_k with the function _e_n_c_r_y_p_t.
-
- The argument to the _e_n_c_r_y_p_t entry is a character array of length 64
- containing only the characters with numerical value 0 and 1. The
- argument array is modified in place to a similar array representing the
- bits of the argument after having been subjected to the hashing algorithm
- using the key set by _s_e_t_k_e_y. _I_g_n_o_r_e_d is unused by _e_n_c_r_y_p_t but it must be
- present.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- login(1), passwd(1), getpass(3C), passwd(4)
-
- CCCCAAAAVVVVEEEEAAAATTTT
- The return value points to static data that are overwritten by each call.
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-